package com.sun.showcase.client.domain.mall;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

public class MemberBill implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
    /**
     * ID       db_column: id 
     */	
	private String id;
    /**
     * 类型（0收入1支出）       db_column: type
     */
	private String type;
    /**
     * 状态（0进行中1已完成）       db_column: status
     */
	private String status;
    /**
     * 金额       db_column: amount
     */
	private Double amount;
    /**
     * 备注信息       db_column: remark
     */
	private String remark;
    /**
     * 时间       db_column: create_date
     */
	private java.util.Date createDate;
    /**
     * 会员id       db_column: user_id
     */
	private String userId;
    /**
     * 会员名称       db_column: user_name
     */
	private String userName;
    /**
     * 业务单ID       db_column: bussiness_id
     */
	private String bussinessId;
	//columns END

	public MemberBill(){
	}

	public MemberBill(
		String id
	){
		this.id = id;
	}

	public void setId(String value) {
		this.id = value;
	}

	public String getId() {
		return this.id;
	}
	public void setType(String value) {
		this.type = value;
	}

	public String getType() {
		return this.type;
	}
	public void setStatus(String value) {
		this.status = value;
	}

	public String getStatus() {
		return this.status;
	}
	public void setAmount(Double value) {
		this.amount = value;
	}

	public Double getAmount() {
		return this.amount;
	}
	public void setRemark(String value) {
		this.remark = value;
	}

	public String getRemark() {
		return this.remark;
	}
	public void setCreateDate(java.util.Date value) {
		this.createDate = value;
	}

	public java.util.Date getCreateDate() {
		return this.createDate;
	}
	public void setUserId(String value) {
		this.userId = value;
	}

	public String getUserId() {
		return this.userId;
	}
	public void setUserName(String value) {
		this.userName = value;
	}

	public String getUserName() {
		return this.userName;
	}
	public void setBussinessId(String value) {
		this.bussinessId = value;
	}

	public String getBussinessId() {
		return this.bussinessId;
	}

	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof MemberBill == false) return false;
		if(this == obj) return true;
		MemberBill other = (MemberBill)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

